﻿Ext.override(NExt.Demo.Application.Entity.Bind.Browse, {
    templateShow: function() {
        Ext.getCmp('mainTab').add(this).show();
    },

    getEditPresenter: function() {
        return new NExt.Demo.Application.Entity.Bind.Edit();
    },
    
    getNewModel: function() {
        return { Name : 'Foo', 
                 LastName : 'Bar',
                 Birthday : new Date(),
                 Gender : 'Man',
                 Reference : { Name : 'Baz1',LastName : 'Baz1' },
                 Salary : 152450.98,
                 YearsOfExprience : 4,
                 PhoneNumber : { Id : 2, Number : '444-123456789'}, 
                 Member: true,
                 Hobbies: { Music : true, Cinema : false },
                 Notes : 'bla bla bla bla....'
               };
    }
});
